package com.bestseller.genericity;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Properties;

public class GenericityTest {
	public static void main(String[] args) throws Exception{
		ArrayList<Integer> a=new ArrayList<Integer>();
		/*a.getClass().getMethod("add", Object.class).invoke(a, "xianggaoxiong");
		System.err.println(a.get(0));*/
		a.add(1);
		a.add(2);
		a.add(3);
		Collections.reverse(a);
		System.out.println(a.get(0));
		
		InputStream is = GenericityTest.class.getResourceAsStream("utils.properties");
		Properties p=new Properties();
		p.load(is);
		System.out.println(p.getProperty("arrayList"));
		
	}
}
